<%-- 
    Document   : delete
    Created on : 24/11/2011, 01:35:38
    Author     : samuel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>   
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>  
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Deletar Arquivo</title>
    </head>
    <body>
        <logic:messagesPresent message="true">  
            <ul><span>    
                    <html:messages id="message" message="true">  
                        <logic:present name="message">  
                            <bean:write name="message"/>                          
                        </logic:present>  
                    </html:messages></span>  
            </ul>  
        </logic:messagesPresent>
        <html:form action="/deleteAction.do" enctype="multipart/form-data">
            <table border="1">  
                <tr>   
                    <th> </th> <th>Código </th>  
                </tr>  
                <c:forEach items="${arquivoLista}" var="arquivo">  
                    <tr>  
                        <td><input type="checkbox" name="codigoSelecao" value="${arquivo.nome}"></td>  
                        <td>${arquivo.nome}</td>
                    </tr>  
                </c:forEach>  
            </table>  
            <html:submit value="OK"/>
        </html:form>
        <a href="Index.do">voltar</a>
    </body>
</html>
